<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
   String basePath=request.getServletContext().getContextPath();
%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>大类栏目管理</title>
<link href="<%=basePath%>/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="<%=basePath%>/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css">
<link href="style/admin.css" rel="stylesheet" type="text/css">
</head>

<body>
	<jsp:include page="header.jsp">
		<jsp:param value='<%=request.getAttribute("level")%>' name="level" />
	</jsp:include>

	<div id="body-contents">
		<img id="logo" src="images/category.gif">

		<div id="workspace">

			<h3 id="title">新增商城大类</h3>

            <div class="container">
            
            <div class="row">
            
                <div class="col-md-12">
            
            <table class="table table-striped table-bordered table-hover table-condensed">
				<!-- 表标题行 -->
				<tr>
					<c:forEach items="${pager.dataFields}" var="field">
						<td>${field.label}</td>
					</c:forEach>
					<td>  操作     </td>
				</tr>
				<c:forEach items="${pager.dataList}" var="data">
					<!-- 表标数据行 -->
					<tr>

						<c:forEach items="${pager.dataFields}" var="field">
							<td>${data[field.name]}</td>
						</c:forEach>
						<td>
						   <a class="update" href="${param.table}.jsp?id=${data.id}&op=update">更新</a>
						   <a class="delete" href="${param.table}.jsp?id=${data.id}&op=delete">删除</a>
						</td>
					</tr>
				</c:forEach>
			</table>


                   
                
                </div>
                
            </div>
            
            </div>
			

		</div>


	</div>

	<jsp:include page="footer.jsp" />
	

<script type="text/javascript" src="<%=basePath%>/jQuery/jquery-3.2.1.min.js"></script>	
<script type="text/javascript" src="<%=basePath%>/bootstrap/js/bootstrap.min.js"></script>	

<script type="text/javascript">

//使用jQuery选择器
//$('#update')-->document.getElementById('update');
//$('.update')-->document.getElementsByClassName('update');
//$('a')-->document.getElementsByTagName('a');

$('.update').click(function(){
	
});

</script>
	
</body>


</html>